package com.roncoo.video.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author wdf
 * @since 2021-04-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="UserCourse对象", description="")
public class UserCourse extends Model<UserCourse> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String imgUrl;

    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @ApiModelProperty(value = "课程ID")
    private Integer courseId;

    @ApiModelProperty(value = "课程名")
    private String courseName;

    @ApiModelProperty(value = "节")
    private Integer coursePeroidId;

    @ApiModelProperty(value = "节名")
    private String coursePeroidName;

    @ApiModelProperty(value = "章")
    private Integer courseChapterId;

    @ApiModelProperty(value = "章节的名字")
    private String courseChapterName;

    @ApiModelProperty(value = "学习时间")
    private String gmtCreate;

    @ApiModelProperty(value = "视频的进度")
    private Double videoTime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
